Detecting delayed activation malware using a primary controller and plural time controllers

ABSTRACT

A malicious content detection (MCD) system and a computerized method for manipulating time uses two or more time controllers operating within the MCD system in order to capture the behavior of delayed activation malware (time bombs). Each time controller may include a monitoring agent located in a software layer of a computer runtime environment configured to intercept software calls (e.g., API calls or system calls) and/or other time checks that seek to obtain a “current time,” and time-dilation action logic located in a different layer (e.g., a hypervisor layer) configured to respond to the software calls by providing a “false” current time that indicates considerably more time has transpired than the real clock. Additionally, a primary controller may be used in some embodiments to configure and manage, the time controllers.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of priority on U.S. Provisional Application No. 62/235,494 filed Sep. 30, 2015, the entire contents of which are incorporated by reference.

1. FIELD

Embodiments of the disclosure relate to the field of cybersecurity, and more specifically, to techniques that detect delayed activation malware by manipulating time seen by the malware using a controller operating within a computer runtime environment.

2. GENERAL BACKGROUND

Over the last decade, malicious software (malware) has become a pervasive problem. In some situations, malware is an object embedded within downloadable content designed to adversely influence or attack normal operations of a computer. Examples of different types of malware may include computer viruses, Trojan horses, worms, spyware, backdoors, and other programming that operates maliciously within an electronic device (e.g. computer, tablet, smartphone, server, router, wearable technology, or other types of electronics with data processing capability) without permission by the user or an administrator.

For instance, content may be embedded with objects associated with a web page hosted by a malicious web site. By downloading this content, malware causing another web page to be requested from a malicious web site may be unknowingly installed on the computer. Similarly, malware may also be installed on a computer upon receipt or opening of an electronic mail (email) message. For example, an email message may contain an attachment, such as a Portable Document Format (PDF) document, with embedded executable malware. Also, malware may exist in files infected through any of a variety of attack vectors, which are uploaded from an infected computer onto a networked storage device such as a file share.

Over the past few years, various types of security appliances have been deployed at different segments of a network. These security appliances use virtual machines to uncover the presence of malware embedded within ingress content propagating over these different segments. However, in order to be effective in uncovering the malware, the virtual machine (VM) needs to make the suspicious content believe that it has accessed a live machine and not just a VM or “sandbox” environment. Thus, any actions that are performed in the VM or “sandbox” have to be as invisible as possible to malware so that the malware does not detect that it is being processed within a sandbox rather than a production computer system. Further, the VM may only exercise each specimen for a finite amount of time so that it may subsequently analyze as many specimens as possible in as short a period of time as possible. Accordingly, some malicious contents employ special defensive strategies to enable them to delay their own execution in order to bypass the VM uncovering their presence.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the invention are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings, in which like references indicate similar elements and in which:

FIG. 1 is a first example block diagram of a network environment that advantageously uses a malware content detection (MCD) system employing both heuristic analysis and behavioral analysis, and deployed within a communication network.

FIG. 2 is a detailed example block diagram of the behavioral analysis components of the MCD system of FIG. 1 in accordance with an embodiment of the invention.

FIG. 3 is an example block diagram that illustrates the functional stack of layers of the MCD system of FIG. 1 that may include one or more time controllers in accordance with an embodiment of the invention.

FIG. 4 illustrates the timing diagrams of (i) the real clock of the guest operating system, (ii) the manipulated clock that includes an increment according to one embodiment of the invention, and (iii) the manipulated clock that operates at an increased frequency according to an embodiment of the invention.

FIGS. 5A and 5B each illustrate a flowchart of an example method performed by a controller detecting a request or other action of a running application and servicing the action at least in part from a different layer of the functional stack of FIG. 3 according to embodiments of the invention.

FIG. 6 illustrates a flowchart of example method that employs memory mapping to provide a manipulated response in accordance with an embodiment of the invention.

FIG. 7 illustrates a flowchart of an example of a method that relates to manipulating experiential time within a run-time environment for detecting malware according to one embodiment of the invention, where the monitoring agent and time-dilation logic of a time controller are located in different layers of a functional stack of software components executing with the run-time environment.

FIG. 8 illustrates a flowchart of another example method of detecting delayed activation malware according to one embodiment of the invention.

FIG. 9A and FIG. 9B show example block diagrams that illustrate components of a time controller according to embodiments of the invention.

FIG. 10 show an example block diagram that illustrates a primary controller employed to configure a plurality of time controllers according to one embodiment of the invention.

FIG. 11 a flowchart of an example method of detecting delayed activation malware employing the primary controller of FIG. 10 according to one embodiment of the invention.

FIG. 12 is an example block diagram that illustrates a computing apparatus that may be advantageously used in implementing the invention.

DETAILED DESCRIPTION I. Overview

Various embodiments of the disclosure relate to a malicious content detection (MCD) system and a corresponding method for manipulating time using a virtual machine and at least one time controller operating within the MCD system in order to capture and respond to an action (such as a time check) originating from malware that is attempting to delay its own execution. In other embodiments, a primary controller is employed to configure and manage the time controllers pursuant to an action plan.

In some embodiments, to uncover the malware effectively, the malware must first be convinced that it is running on a “live” machine and not in a VM environment that is implemented within the MCD system. For instance, since many malware are able to delay their own execution to bypass the VM's detection, in some embodiments, the MCD system may capture the delayed behavior of the malware by manipulating the time being obtained by the malware. For instance, the malware may delay its own execution in the VM by: (i) checking the current time using a software call (or other time check) to delay completion of its execution (e.g., sleep for 30 minutes), (ii) repeatedly checking whether the time has passed using one or more other software calls (or other time checks), and (iii) executing once it has determined that the delay has passed. To capture this delayed behavior, the MCD system may manipulate the time that is being obtained by the malware to convince it that the delay has passed such that the malware may execute when, in reality, only a short finite amount of time has passed (e.g., less than the delay for which the malware is waiting). Accordingly, embodiments of the invention are operable in order to effectively convince malware that (a) the malware is not in a VM environment, and (b) a manipulated time that is much longer than the real time has elapsed.

More specifically, a content specimen is processed over a short period of time (real time) in the runtime environment but, through the disclosed mechanisms, is led to believe it is processed for a much longer time. This is intended to trick the specimen into activation in the event it constitutes a delayed activation malware (time bomb) so it may be detected and classified as malware by the MCD. More specifically, in some embodiments of the invention, a time controller detects requests from or other time checks by the specimen (or from the process running the specimen) for the current time and provides a “false” time or clock as a response to achieve time dilation.

In various embodiments, the time controller includes one or more modules, logic or agents (which terms may be used interchangeably), each situated, for example, as a user-mode process, as a kernel-mode process, as a process running in or with a hypervisor, functionality embedded in virtual chipsets, and/or in the host operating system (“OS”). These various locations may be referred to as layers in the functional stack of the run-time environment. The time controller includes (a) a monitoring agent located in each of one or more of the layers configured to intercept, trap or, in common jargon, “hook” a software call (e.g., API, library, procedure, function, or system call) or other time check that seeks to check “current time,” and (b) time-dilation logic also located in one or more of the layers, each preferably different and “lower” in the stack than the monitoring agent, and configured to respond to the software call or other time check by providing a “false” current time that indicates considerably more time has transpired than the real clock. As an alternative to (or in addition to) the just-mentioned software call-response technique, the time control logic can be equipped to utilize one or more other techniques to establish the “false” time, including periodic or aperiodic polling, and in-memory or “op code” based techniques.

The response to the software call or other time check intercepted by the monitor agent may be made by the time-dilation logic explicitly via the monitoring agent or directly to the requester (e.g., software component, such as a process or operating system) within the software stack, or implicitly by modification of clock information (e.g., in memory) targeted by the software call or other time check, as appropriate and, preferably, as would be expected by malware if the call or time check so originated from malware.

In some embodiments, each time controller may have a set of two or more monitoring agents that share a single time-dilation logic, where the monitoring logic modules may be located in the same layer in the software stack or in different layers. The time-dilation logic can provide the same time dilation clock to all the monitoring modules in the set or provide different time-dilation clocks to each. Moreover, the time-dilation logic may provide time-dilation clocks to each monitoring agents in a fashion that is consistent from agent to agent with respect to establishing the false clock, particularly in so far as the software calls or other techniques used by malware to check time may arrive at somewhat different times and the false time provided in response must account for this difference in order to trick the malware. Moreover the malware may use more than one request (or one or more than one technique) in order to be assured that time manipulation within a malware detector is not taking place.

Various embodiments may employ a virtual run-time environment established, for example, by a hypervisor instantiating one or more virtual machines for processing a specimen. Each virtual machine may execute a guest image including a guest operating system (OS) and an application instance (process). Each monitoring agent and time-dilation logic of a time controller may reside inside one of the following: (i) the guest image (e.g., the specimen or process running in the user space or kernel space of the guest image), (ii) the host OS software, (iii) the hypervisor, or (iv) a virtualized device. Each of these components may be implemented as an independent process in the guest image or on or beneath the host OS. The monitoring agent may be located within any of these, and the time-dilation logic may be co-located (same layer) or may be located, at least in part, in another of these layers, e.g., the monitoring agent may be located closer to the specimen being processed. For example, the monitoring agent may be located within a process (or as a process) of the guest image and the time-dilation logic may be in communication with the monitoring agent and operating within or with the hypervisor. Accordingly, depending on the location of the time controller(s), kernel mode or user mode activities of the guest image may each see a different clock/time or they may all see the same clock/time. Each time controller can be referred to as an “elastic” time controller since its time-dilation logic may be configured to establish “short” or “long” delays. In other words, the time-dilation logic of a time controller can respond to a software call or other time check from a specimen being processed with a response containing a selected “false” time that induces the specimen into believing it has been dormant or inactive for a shorter period of time or a longer period of time depending on detection needs.

The time-dilation logic can decide on the length of delay based on prior results, e.g., static analysis results for the specimen, metadata regarding the specimen, identity of processes running in the run-time environment, experiential knowledge in dealing with known malware, current analysis parameters such as length of the queue of specimens awaiting analysis and contention for resources (e.g., CPU or memory resources), and other factors. The duration of the delay may be a prescribed (fixed) or selectable value. For example, the time-dilation logic may select a delay value from any of various discrete lengths of time (e.g., a 30 minute length, 60 minute length, or two day length) or may select any delay value over a continuous range of available time delays (e.g., 60 minutes to 2 days) and so be fully tunable. The time-dilation logic then adds the delay value to the current time indicated by the clock (e.g., system clock or timestamp) it receives or utilizes, so as to fashion a new, “false” current time for responding to the time request/check from the specimen. Future time requests/checks received while processing the same specimen will take into account the delay introduced during the first response so as to provide a consistent clock and prevent malware from detecting that it is being analyzed (or at least reduce the chances of detection). In some embodiments, the length of delay (increment) may be parameterized and a configuration file may provide values for such time ranges and periods, and be updated, for example, by downloading replacement or modifications to the configuration file from a central source.

Additionally, in one embodiment, the MCD may include a primary controller with configuration, policy, and management logic adapted to communicate with and configure (e.g., provide the rules, policies, and otherwise manage) each of the time controllers. The primary controller may selectively enable/disable one or more of the time controllers to monitor and/or respond to the software calls or other time checks, employing one or more of the techniques mentioned herein. Individual time controllers may be entirely enabled or disabled, or partially enabled or disabled. Partial enablement may denote that the time controller is limited in operation, for example, to introduce only a prescribed and fixed delay time, e.g., a short delay of fixed duration, or to provide time dilation regardless of any observed behaviors of a particular specimen. The primary controller may be implemented, for example, as part of a VM monitor or manager (VMM), also referred to as a hypervisor, which manages VMs, or, in some embodiments, may be functionally integrated into one of the time controllers.

With some of these options and embodiments, a single process (including any and all its threads) in the run-time environment, (e.g., a virtual machine) will see the same length of time dilation, which occurs when the primary controller enables a time controller located for example within that process, proximate the process (e.g., within an independent monitoring process associated with the process), or within any kernel routines servicing the process. In others, a set of processes (e.g., running in a like number of VMs) will see the same length of time dilation, which occurs when the primary controller enables a time controller located for example in the guest OS software for the VM. In still others, the entire virtualized computer (e.g., in one or more VMs) will see a system-wide time dilation (i.e., a delay added to the system clock), which occurs when the primary controller enable a time controller located for example in the hypervisor or the host operating system.

In some embodiments, the primary controller can enable a plurality of time controllers, each with monitoring agent at least in part in a different layer of the functional software stack within the virtual environment. This produces essentially a nesting of enabled time controllers where each may add a time delay relative to the system clock or timestamp so as to produce an aggregated delay that may be greater than that available from any of the time controllers individually. The primary controller may selectively enable one or another (or more than one) of the time controllers (and thus one or more of their respective monitoring agent) so as to “hide” more effectively the time dilation from the malware in analysis. Additionally, in still another embodiment, the primary controller can selectively, and even dynamically (during run-time) associate a time-dilation logic of any of the time controllers with one or more monitoring agents of different time controllers so as to control from any location in which a time-dilation logic is located a number of different monitor agents often located in different layers. This technique may enhance the ability of the MCD to avoid the special defensive strategies employed by some malware to detect that they are located in a malware detection system.

The primary time controller may make decisions as to what technique to employ based on runtime policies or rules. These policies can be static (e.g., factory set), MCD dependent (e.g., dependent on where the MCD is installed in a network), dynamic, e.g., dependent on recent history of malware abilities or trends (e.g., recent known malware remaining inactive for a known number of hours before activation) as detected by the MCD or furnished from other sources, or user set (e.g., by network or security administrators). To illustrate, as a specimen runs, the primary time controller may decide to apply elastic time based on monitored behaviors, and on human experiential knowledge (experienced human analysts) or machine learning (using labelled/known specimens of malware and non-malware and extrapolating to future unknown/unlabeled specimens) to determine optimal time controller configurations.

In one embodiment, the primary time controller formulates and stores an action plan for exercising a specimen so as to trigger activity of malware (if present), and then enables the time controllers to execute the action plan. The action plan may specify using one or more available techniques, one or more available time controllers, specific mappings of time-dilation logic to one or more monitoring agents, and/or specific delay value(s), to cause the process (or the system running the process) to sleep for a period of virtual time and re-awake afterwards to activate malware. This is accomplished while only, e.g., seconds or minutes have passed in real time, instead of, e g., hours or days in “malware time.” The technique and length of time dilation may be selected based on rules, e.g., developed using experiential knowledge of prior malware employing delayed activation techniques, etc.

Accordingly, in some embodiments, each time controller can dilate or shrink the “sleep” time of the specimen so as to control apparent time dilation. This is accomplished, in various embodiments, by a) modifying clocks, b) modifying software call responses, c) updating memory, d) using an alternative kernel scheduler, e) using chipset level delays, e.g., introducing a sleep or hibernation event on a system-wide basis, or f) any combination of the above. Embodiments of the invention may provide a hybrid solution that strives to obtain the benefits of each of these different techniques, may select dynamically from them, and/or dynamically configure them during run time. The dynamic configuration may be based on external configuration sources or on behavior (or lack of behavior) of a specimen under analysis as monitored by the DMC and/or as previously captured for the specimen.

Embodiments of the invention may be embedded in or employed by a dedicated appliance, a network device such as a firewall, a host system, an endpoint or other node of a network, or other electronic device, whether in-line, out-of-band, in production, off-line, or serving as a forensic station or a cloud-based or partially cloud based solution. The operational flexibility provided by these embodiments enables malware to be detected efficiently and without the malware's own detection defense or evasion systems becoming aware of the replacement clock time, thereby increasing the probability that the malware will activate during analysis.

The embodiments of the invention disclosed herein represent significant improvements over traditional techniques for monitoring specimens processed in a VM-based malware detector, and detecting delayed-activation malware.

U.S. Pat. No. 8,635,696 entitled “System and Method of Detecting Time-Delayed Malicious Traffic,” is issued to Ashar Aziz, and commonly assigned with the present case to FireEye, Inc. That patent describes a malware detection system having a controller configured to monitor behavior of a VM in response to processing of network traffic within the VM, and identify anomalous behavior by accelerating activities caused by the network traffic to reduce time for detection. Based on the identified anomalous behavior, the controller determines the presence of time-delayed malicious traffic. The controller accelerates the activities of the network traffic in the VM, for example, by intercepting one or more time-sensitive system calls and modifying one or more responses to the system calls. A known prior art implementation of such technology for monitoring behavior of a VM employs one or more monitors within the guest software image of the VM (and particularly in one or more processes of the operating system), where each monitor is a self-contained entity equipped to intercept time-sensitive system calls and the like, employ its own logic within the same entity to formulate a modified response so as to accelerate activities within the VM, and deliver the modified response to the requester.

Embodiments of the instant invention have many benefits over the known prior art. First, the monitoring logic can be fashioned as a thin or light-weight agent, whose responsibilities are limited to intercepting or trapping software calls or otherwise “hooking” either other time checks or programmatic mechanisms leading to time checks (e.g., breakpoints or exceptions), and delivering responses to the time checks containing an altered time. The logic required to fashion the responses is moved outside the monitoring agent to the time-dilation logic. Second, the two separate entities, that is, the thin monitoring agent and the time-dilation logic, can permit them to be situated in separate layers of the functional stack within or even outside the VM. This combination of features renders the monitoring agent less likely to be detected by malware, achieves more flexibility in detection as to where the components are placed and their view of the behaviors of the content under analysis, enables the provision of coordinated time clocks to deceive malware using a variety of techniques, and provides flexibility in control of responses across monitoring agents or even across multiple time controllers, to list but a few of the advantages further described here.

As noted, the monitoring agent can be placed in a variety of locations in the software stack. Where the monitoring agent is located in the guest image, e.g., in user mode space, and in close proximity to any content processed there, the monitoring agent can obtain specific context information regarding that processing that may be useful in classifying the content as malware. Unfortunately, such location may render the monitoring agent at higher jeopardy of being discovered by the malware, and particularly today's more sophisticated malware that may employ its defense mechanisms to defeat its detection. On the other hand, where the monitoring agent is located farther down the software stack from the content being processed, e.g., in the hypervisor or host operating system layers, some context information may not lend itself to capture by the monitoring agent but the monitoring agent itself may be less prone to discovery by malware. Embodiments of the invention may balance these two factors, with some emphasizing cloaking of the malware detection environment and others emphasizing collection of detection information or faster detection.

II. Terminology

In the following description, certain terminology is used to describe features of the invention. For example, in certain situations, both terms “logic” and “engine” are representative of hardware, firmware and/or software that is configured to perform one or more functions. As hardware, logic (or engine) may include circuitry having data processing or storage functionality. Examples of such circuitry may include, but is not limited or restricted to a microprocessor, one or more processor cores, a programmable gate array, a microcontroller, an application specific integrated circuit, wireless receiver, transmitter and/or transceiver circuitry, semiconductor memory, or combinatorial logic.

Logic (or engine) may be in the form of one or more software modules, such as executable code in the form of an executable application, an application programming interface (API), a subroutine, a function, a procedure, an applet, a servlet, a routine, source code, object code, a shared library/dynamic load library, or one or more instructions. These software modules may be stored in any type of a suitable non-transitory storage medium, or transitory storage medium (e.g., electrical, optical, acoustical or other form of propagated signals such as carrier waves, infrared signals, or digital signals). Examples of non-transitory storage medium may include, but are not limited or restricted to a programmable circuit; a semiconductor memory; non-persistent storage such as volatile memory (e.g., any type of random access memory “RAM”); persistent storage such as non-volatile memory (e.g., read-only memory “ROM”, power-backed RAM, flash memory, phase-change memory, etc.), a solid-state drive, hard disk drive, an optical disc drive, or a portable memory device. As firmware, the executable code is stored in persistent storage.

The term “content” generally refers to information transmitted as one or more messages, where each message(s) may be in the form of a packet, a frame, an Asynchronous Transfer Mode “ATM” cell, or any other series of bits having a prescribed format. The content may include one or more types of data such as text, software, images, audio, metadata and/or other digital data. One example of content may include web content, or any data traffic that may be transmitted using a Hypertext Transfer Protocol (HTTP), Hypertext Markup Language (HTML) protocol, or may be transmitted in a manner suitable for display on a Web browser software application.

Another example of content includes electronic mail (email), which may be transmitted using an email protocol such as Simple Mail Transfer Protocol (SMTP), Post Office Protocol version 3 (POP3), or Internet Message Access Protocol (IMAP4). A further example of network content includes an Instant Message, which may be transmitted using Session Initiation Protocol (SIP) or Extensible Messaging and Presence Protocol (XMPP) for example. Yet another example of content includes one or more files that are transferred using a data transfer protocol such as File Transfer Protocol (FTP) for subsequent storage on a file share.

The term “malware” may be construed broadly as any computer code that initiates a malicious attack and/or operations associated with anomalous or undesirable behavior. For instance, malware, as used herein, may correspond to a type of malicious computer code that executes an exploit to take advantage of a vulnerability, for example, to harm or co-opt operation of a network device or misappropriate, modify or delete data. The vulnerability may exist in software running on an electronic device and/or may arise from an action by a person that permits the malware to gain unauthorized access to one or more areas of computer infrastructure such as the electronic device itself or another electronic device or computer resource. Upon gaining access, the malware may carry out its harmful or unwanted action.

The term “transmission medium” is a communication path between two or more systems (e.g. any electronic devices with data processing functionality such as, for example, a security appliance, server, mainframe, computer, netbook, tablet, smart phone, router, switch, bridge or router). The communication path may include wired and/or wireless segments. Examples of wired and/or wireless segments include electrical wiring, optical fiber, cable, bus trace, or a wireless channel using infrared, radio frequency (RF), or any other wired/wireless signaling mechanism.

In general, a “virtual machine (VM)” is a simulation of an electronic device (abstract or real) that is usually different from the electronic device conducting the simulation. VM may be based on specifications of a hypothetical computer or emulate the computer architecture and functions of a real world computer. A VM can be one of many different types such as, for example, hardware emulation, full virtualization, para-virtualization, and operating system-level virtualization virtual machines.

The term “computerized” generally represents that any corresponding operations are conducted by hardware in combination with software and/or firmware.

Lastly, the terms “or” and “and/or” as used herein are to be interpreted as inclusive or meaning any one or any combination. Therefore, “A, B or C” or “A, B and/or C” mean “any of the following: A; B; C; A and B; A and C; B and C; A, B and C.” An exception to this definition will occur only when a combination of elements, functions, steps or acts are in some way inherently mutually exclusive.

As this invention is susceptible to embodiments of many different forms, it is intended that the present disclosure is to be considered as an example of the principles of the invention and not intended to limit the invention to the specific embodiments shown and described.

III. General Architecture of Illustrative MCD System

Referring to FIG. 1, an example block diagram of a communication system 100 deploying a plurality of malware content detection (MCD) systems 110 ₁-110 _(N) (N>1) communicatively coupled to a management system 120 via a network 125 is shown. In general, management system 120 is adapted to manage MCD systems 110 ₁-110 _(N). For instance, management system 120 may be adapted to cause malware indicators generated by any of MCD systems 110 ₁-110 _(N) to be shared with one or more of the other MCD systems 110 ₁-110 _(N) for malware blocking purposes, including, for example, where such sharing is conducted on a subscription basis.

Herein, according to this embodiment of the invention, first MCD system 110 ₁ is an electronic device that is adapted to use a hybrid (or multi-layer) technique to detect malware that is delaying its own execution to bypass detection by a run-time environment of a malware detection system, established for example as a VM-based virtual environment. Specifically, according to this embodiment, the first MCD system 110 ₁ is adapted to: (i) trap by a time controller monitoring agent 230 located, e.g., in the guest image of the VM, an action (e.g., a software call) by a specimen indicating that the specimen may be seeking to delay its own execution, (ii) communicate by the time controller the trap of the action or call to the time controller time-dilation logic 232, e.g., in the hypervisor or VMM 200, (iii) generate a command or other response to the trapped action so to perform a modification of the time (e.g., dilation or skewing of time) in a predictable manner for a predetermined period of time, (iv) receiving the modified time at the controller monitoring agent 230 and providing the response to the trap to the entity originating the action or call, and (v) processing the specimen with respect to the modified time. Accordingly, the hybrid technique uses both the time controller monitoring agent and the separate time controller time-dilation logic to detect the malicious code by manipulating time.

According to this embodiment of communication system 100, first MCD system 110 ₁ may be a web-based security appliance that is configured to inspect ingress data traffic, identify whether content associated with the data traffic may include malware (“suspiciousness”), and if so, conduct a deeper analysis of the content. This deeper analysis is conducted by processing the content within the VM execution environment to detect undesired behaviors that would be present if the data traffic were actually processed by an electronic device. The particulars of this analysis are described below.

The communication network 130 may include a public computer network such as the Internet, in which case an optional firewall 155 (represented by dashed lines) may be interposed between communication network 130 and client device 150. Alternatively, the communication network 130 may be a private computer network such as a wireless telecommunication network, wide area network, or local area network, or a combination of networks.

The first MCD system 110 ₁ is shown as being coupled with the communication network 130 (behind the firewall 155) via a network interface 160. The network interface 160 operates as a data capturing device (referred to as a “tap”) that is configured to receive data traffic propagating to/from the client device 150 and provide content from the data traffic to the first MCD system 110 ₁.

In general, the network interface 160 receives and copies the content normally without an appreciable decline in performance by the communication network 130. The network interface 160 may copy any portion of the content, for example, any number of data packets. In some embodiments, the network interface 160 may capture metadata from data traffic intended for client device 150, where the metadata is used to determine whether the data traffic includes any suspicious content as well as the software profile for such content. The metadata may be associated with the server device 140 and/or the client device 150. In other embodiments, a heuristic module 170 (described herein) may determine the software profile by analyzing the content associated with the data traffic.

It is contemplated that, for any embodiments where the first MCD system 110 ₁ is implemented as an dedicated computing appliance or a general-purpose computer system, the network interface 160 may include an assembly integrated into the appliance or computer system that includes network ports, network interface card and related logic (not shown) for connecting to the communication network 130 to non-disruptively “tap” data traffic propagating through firewall 155 and provide a copy of the data traffic to the heuristic module 170. In other embodiments, the network interface 160 can be integrated into an intermediary device in the communication path (e.g. firewall 155, router, switch or other network device) or can be a standalone component, such as an appropriate commercially available network tap. In virtual environments, a virtual tap (vTAP) can be used to copy traffic from virtual networks.

Referring still to FIG. 1, first MCD system 110 ₁ may include a heuristic engine 170, a heuristics database 175, a scheduler 180, a storage device 185, a behavioral analysis engine 190, a classifier 190, and a reporting module 198. In some embodiments, the network interface 160 may be contained within the first MCD system 110 ₁. Also, heuristic engine 170, scheduler 180, behavioral analysis engine 190, classifier 195 and reporting module 198 may be software modules executed by a processor (e.g., central processing unit (CPU) 1202 of FIG. 12) that receives the suspicious content, performs malware analysis and is adapted to access one or more non-transitory storage mediums operating as heuristic database 175 and storage device 185. Storage device 185 stores information regarding observed behaviors, analysis results, configuration and management, as will be better understood from the description that follows.

In general, the heuristic engine 170 performs static scanning of a file to determine whether objects within the file may include malware or exploits (e.g. portions of content that may contain or be exploited by malware), vulnerable functions, and/or malicious patterns (e.g. shell code patterns, ROP patterns, heap spray patterns, etc.). The term “file” is used for convenience broadly to include network traffic (such as webpages, emails or data flows), executables, non-executables (e.g., documents) and other content. The term “data flow” is used to specify a collection of related packets (e.g., messages) communicated during a single communicated session between a sending and receiving device.

As illustrated in FIG. 1, the heuristic engine 170 receives the copy of incoming content from the network interface 160 and applies heuristics to determine if any of the content is “suspicious”. The heuristics applied by the heuristic engine 170 may be based on data and/or rules stored in the heuristics database 175. Also, the heuristic engine 170 may examine the image of the captured content without executing or opening the captured content. In some embodiments, the static scanning performed by the heuristic engine 170 may include (i) performing an exploit check, which may apply malware-related rules or statistics to the content or involve a comparison of the content against one or more pre-stored exploit signatures (pre-configured and predetermined attack patterns), and/or (ii) performing a vulnerability or anomaly check, which may involve uncovering deviations in messaging practices set forth in applicable communication protocols (e.g., HTTP, TCP, etc.).

After static scanning by the heuristic engine 170, the captured content may be presented to the behavioral analysis engine 190 for more in-depth analysis using virtual machine (VM) technology for processing of the file in a run-time environment in which one or more applications are executed (not just emulated). The ensuing processing may be conducted for a period of time that is either fixed or variable, and may be set manually by an administrator or automatically by the MCD system 110 ₁, for example, based on the type of file, queue length of files to be analyzed, or other analysis parameters (such as the results of the heuristic engine 170). For this purpose, the heuristics engine 170 communicates with the scheduler 180.

The scheduler 180 may retrieve and configure a virtual machine (VM) to mimic the pertinent performance characteristics of the client device 150. In one example, the scheduler 180 may be adapted to configure the characteristics of the VM to mimic only those features of the client device 150 that are affected by the data traffic copied by the network interface 160. The scheduler 180 (or the heuristic engine 170, depending on the embodiment) may determine the features of the client device 150 that are affected by the content by receiving and analyzing the network traffic from the network interface 160. Such features of the client device 150 may include ports that are to receive the content, certain device drivers that are to respond to the content, and any other devices coupled to or contained within the client device 150 that can respond to the content. In another embodiment, the scheduler 180 configures the VM with software referred to as a software profile, which is suitable for processing the file. The software profile may include an application, an operating system and a time controller, or at least its monitoring module (see FIG. 2), as described below. For example, the VM may be provisioned with an Internet browser where the file constitutes a webpage, with an email application where the file constitutes an email, and with an appropriate document reader where the file constitutes a Microsoft® Office® document or PDF. In some embodiments, various software profiles may be stored in the MCD system, and an individual software profile selected for use by the scheduler 180 for initiating a VM instance for processing the file. The MCD can be thought of as storing a pool of VMs, and the scheduler 180 as selecting the appropriately provisioned VM from the pool, where the VM pool exists in a logical sense.

The behavioral analysis engine 190 may be adapted to execute one or more VMs to simulate the receipt and/or processing of different potentially “malicious” objects within a file under analysis (analyzed file) within a run-time environment as expected by the type of file, as noted above. The run-time environment may be one selected to mimic one that is prevalently provided by client devices, or, in alternative embodiments, one that can be provided by the client device 150 in particular. Furthermore, the behavioral analysis engine 190 analyzes the activities of the file while it is processed in the run-time environment, in other words, the effects of such content upon the run-time environment, such as the client device 150. Such behavior or effects may include unusual network transmissions, unusual changes in performance, and the like. This detection process is referred to as a dynamic malicious content detection. The behavioral analysis engine 190 stores these behaviors or effects in the storage device 185, which may comprise virtual storage.

A classifier 195 is operable to determine, based on the observed or monitored behaviors or effects, whether the file is or contains malware. A reporting module 198 may issue alerts indicating the presence of malware, and may include pointers and other reference information to identify and provide analytical information on the files under analysis. Additionally, the server device 140 may be added to a list of malicious network content providers, and future network transmissions originating from the server device 140 may be blocked from reaching their intended destinations, e.g., by firewall 155 or another device including a malware detection/blocking system. To that end, the MCD may generate a malware indicator reflecting the file contents (e.g., a hash of a portion of the contents), a malicious server identifier, and/or observed characteristics and behavior of the malware.

Further details of embodiments of the behavioral analysis engine 190 and its run-time environment can be had with reference to FIGS. 2 and 3.

Of course, in lieu of or in addition to static scanning operations being conducted by MCD systems 110 ₁-110 _(N), it is contemplated that cloud-based computing services may be implemented to perform such static scanning: deconstruct a file for static scanning; conduct static scans on one or more objects within the deconstructed file(s); and/or perform emulation on any of these objects, as described herein. Alternatively, the dynamic analysis performed by the behavioral analysis engine 190 together with malware classification and reporting may be provided by cloud-based computing services. In accordance with this embodiment, MCD system 110 ₁ may be adapted to establish secured communications with cloud-based computing services for exchanging information.

Referring now to FIG. 2, a detailed block diagram of the MCD system 110 ₁ according to one embodiment of the invention is shown. Herein, the MCD system 110 ₁ comprises the storage device 185 coupled to a detection controller 200 via a transmission medium 205. Detection controller 200 is configured to manage and/or control one or more virtual machines (VMs) 210 ₁-210 _(N) (N≥1) operating within behavioral analysis engine 190. Information associated with VMs 210 ₁-210 _(N) is stored in storage device 185 in a form of VM disk files 260 ₁-260 _(M) (N≥M≥1). Herein, detection controller 200 may be implemented as part of a VM monitor or manager (VMM), also referred to as a hypervisor for managing one or more VMs, which may be hosted by a host OS. The VMs 210 ₁-210 _(N) may each be configured with a guest OS and one or more application instances (processes). The host OS and the guest OS may be the same type of operating systems or different types of operating systems (e.g., Windows™, Linux™, Unix™, Mac OS™, iOS™, etc.) or different versions thereof.

Each VM disk file (e.g., VM disk file 260 ₁) comprises information, including (i) profile information 270 and (ii) state information 275, along with a persistent event log file 280. Event log file 280 is adapted to persistently store certain actions, activities or behaviors (called “events”) monitored during processing of the suspicious content 220 during execution of a VM based on the software profile 270. The terms “activity”, “action” and “behavior” when referring to detected processing events may be used interchangeably in this description of embodiments of the invention.

Herein, as illustrated, profile information 270 includes information directed to identified items forming the software profile within VM disk file 260 ₁ from which a corresponding VM is instantiated. Examples of items within the software profile may include, but are not limited or restricted to a particular OS type/version; type(s)/version(s) of application(s) and state information 275. Additionally, the profile information 270 may contain information regarding location of time controllers (including the monitors and time-dilation logic) within the run-time environment.

The storage device 185 may further include, a system clock 408 and virtual chipset 411 including, in some embodiments, a virtual CPU) instantiated in or capable of being supported by a corresponding VM. In some embodiments, the system clock 408 may be contained in the virtual chipset 411.

According to one embodiment of the invention, when suspicious content 220 is received for dynamic analysis (as opposed to static analysis conducted by heuristic engine 170), scheduler 180 of detection controller 200 is configured to identify and select one or more VMs 210 ₁-210 _(N) in which the suspicious content 220 is to be analyzed. The targeted operating environment is identified by software profile information (e.g., particular versions of OS and application images along with information directed to the virtual device states). The targeted operating environment may also include a time controller, or at least its monitoring module 230, as described below.

More specifically, the scheduler 180 comprises VM provisioning logic 240 and VM resource logic 245. VM provisioning logic 240 is responsible for creating and provisioning VMs. VM resource logic 245 operates as the centralized logic within the MCD system for responding to resource requests, allocating resources, and monitoring the allocation of such resources.

Upon receipt of the software profile by the behavioral analysis engine 190, the scheduler 180 launches a VM 210 ₁ in which a monitoring module 230 may be running and configured to monitor activities of suspicious content 220 useful in determining whether the incoming content includes malware and whether the particular software profile has any vulnerabilities that are being exploited. In addition, monitoring module 230 maintains a persistent communication channel with event log 250 of detection controller 200 to communicate certain monitored behaviors (events) of suspicious content 220 during execution of VM 210 ₁.

In response to detecting certain events during processing of suspicious content 220, the monitoring module 230 is configured to send a message via the communication channel to event log 250, where the message may be persistently recorded as part of event log file 280. The message may include information identifying the event. Event log 250 records events that have been selectively monitored and detected by monitoring module 230, including undesired behaviors. The recordation of the events may be prompted in response to a particular action (e.g., file creation, registry access, and process execution). The recorded events may be subsequently evaluated by classifier 195 (FIG. 1) based on a set of rules or policies to determine whether suspicious content 220 should be classified as containing or constituting malware or, more precisely, as having a high likelihood of containing or constituting malware.

IV. Example Embodiments for Time Manipulation by the MCD System

As discussed above, in order to capture the behavior of the suspicious content's delayed action, the VM 210 ₁ may manipulate time such that the suspicious content believes that the manipulated time (that is greater than the real time) has elapsed. Accordingly, the suspicious content will mistakenly believe that the action has been delayed for the desired amount of time and execute the action which may be captured by the VM 210 ₁. In some embodiments, parts of the time controllers located in multiple layers of the MCD system 110 ₁ are used to create a hybrid (multi-layer) techniques that manipulates time to capture the suspicious content's delayed action.

Referring to FIG. 3, an illustrative functional stack (called, for convenience, a “software stack”) 300 of the MCD system 110 ₁ of FIG. 1 with its various layers is depicted in an example arrangement. It will be apparent to those of ordinary skill in the art that alternative arrangements of the software stack of the MCD system may be deployed, and therefore the one depicted in this figure, including its composition and order in the stack, is not intended to be limiting of the scope of the invention. Proceeding from the top of the figure, the guest OS 301 includes the guest user mode layer 302 that sits above the guest kernel mode layer 303. In some embodiments, the guest kernel mode layer 303 includes first and second kernel schedulers 306, 307, which will be described hereinbelow. The guest user mode layer 302 includes at least one process 310. Beneath the guest operating system 301, and in communication therewith, a hypervisor layer 304 includes a hypervisor or VMM 200. Beneath the hypervisor layer 304 and in communication therewith, a host OS 420 includes host clock 308 and a virtual chipset 311 (which may include a virtual CPU, memory, virtual disk, timestamp, etc.). Beneath the host OS 420 and in communication therewith is a physical layer 307 including a real chipset 309, which may include the CPU 1202 of FIG. 12 and other devices. A hardware-assisted hypervisor 314 enables virtualization based, at least in part, on hardware capabilities from the physical layer 307 and in particular from processors implemented as part of the CPU, and may, in some implementations, include components implements as part of both the CUP and the host operating system 320. Finally, and importantly, each of at least a set (e.g., two or more) of the layers of the software stack 300 includes at least part of a time controller 305, as represented by dash boxes in the figure. Different embodiments may use different numbers and locations of time controllers, as will be apparent from the description included herein. The layers of the software stack 300 of the MCD system 110 ₁ as illustrated in FIG. 3 are further discussed below.

In FIG. 3, the time controller 305 is illustrated to be logic such as executable code or other logic that may reside in one or more layers. In various embodiments, the time controller 305 may be implemented, in whole or in part, as follows:

-   -   a. inside at the user mode layer 301 as part of or operable in         association with user-mode process 410;     -   b. inside the guest OS 301 at the guest kernel mode layer 303 as         part of or operable in association with the guest OS;     -   c. inside the host OS layer as part of or operable in         association with the host OS 320 (or host OS software stack);     -   d. inside the hypervisor layer 304 as part of or operable in         association with the hypervisor 200;     -   e. as part of or operable in association with the virtual         chipset 311 (e.g., virtualized devices); and/or     -   f. as an independent running process running on the Guest OS         320.         Accordingly, the time controller's logic allows for the trapping         of an action (e.g., a time check such as a time-related request         (software call)) by monitoring agent followed by time dilation         via the time-dilation logic as implemented in or across one or         more layers of the software stack. More specifically, the         monitoring agent 230 of the time controller 305 may be located         in any of the layers described in (a) through (f) above to         detect the action as seen or produced at that layer. The         time-dilation logic 232 can be located at a different and, in         many embodiments, lower layer in the software stack 300, along         with its configuration, policy, and management logic.

The time controller 305 may be configured by runtime policies. Accordingly, the time controller 305 may be entirely enabled or disabled, may be partially enabled or disabled, and may be dynamically configured in accordance to the runtime policies. In some embodiments, the time controller may be dynamically configured based on (i) configuration sources that are external to the VM or (ii) the detection of behavior or lack of behavior by the specimen being assessed inside the VM. Configuring the time controllers 305 can be performed by an administrator or security personnel via a user interface or, in other embodiments, by primary controller (FIG. 10).

In one embodiment, the MCD system 110 ₁ illustrated in FIG. 2 may be located at a proprietary network of an enterprise or other organization, e.g., at an ingress point into the network or a network segment. However, it is contemplated that in another embodiment, the malware detection system employing the inventive concept may be situated as part of an off-line (or out-of-band) automated malware discovery sensor, for example, so as to detect malware contained in data at rest (e.g., stored data or files) or to perform deeper forensic analysis of content, possible as a cloud-based service.

V. Common Approaches Used by Malware to its Own Delay Activation

The objective of the “time bomb” types of malware is to delay completion of execution of its malicious code so they may avoid detection or activate at an opportune time, and they may employ a number of different approaches to achieving this. These may include: (1) making an software (e.g., API) call that is transferred from the guest user mode layer to the guest kernel mode layer for handling, (2) including assembly code that requests the number of clock cycles (ticks) directly from the CPU or the virtual CPU included in the virtual chipset, and (3) making a software call (e.g., library call) serviced in the guest user mode layer. These three delay approaches will now be detail along with the techniques employed by embodiments of the invention in dealing with them to facilitate detecting time-delayed malware.

(1) API Call Transferred from the Guest User Mode Layer to the Guest Kernel Mode Layer

In the first delay approach known to be used by malware, the malware makes an API call to delay execution of its malicious code. The API call may be, for instance, sleep, wait for a single object, wait for multiple objects, or another call that serves to signal the task scheduler to tell the OS that it is going to run a code in the future, etc. The API calls may also be effected by lower level calls specific to an operating system such as, for example, delay execution, or yield. Generally speaking, using these time-based API calls, the malware instructs the infiltrated computing device not to run/execute its malicious code for a period of time. These API calls are transferred into the kernel mode layer such that they become system calls.

(2) Assembly Code that Makes Time-Related Requests Directly from the Virtual Chipset

In the second delay approach, the malware may include opcodes (or machine code) to effect a delay. For example, the malware may use a low level machine instruction call such as the opcode “rdtsc” (read time stamp counter instruction) to obtain the number of ticks that represents the number of clock cycles on the CPU since the machine booted. A malware author may use this opcode in the malware to delay execution of its malicious payload without using API or system calls by making requests directly to the CPU from time to time for the number of ticks and waiting for a prescribed incremental increase in the number of ticks before executing. For instance, the malware may (i) request the number of ticks using the opcode, (ii) perform a Sleep or similar operation, (iii) request the number of ticks using the opcode at a later time, and (iv) execute its malicious code if the number of ticks indicates that a sufficient amount of delay has passed (e.g., malware's desired delay has been reached).

(3) API Call Serviced in the User Mode Layer

In this third delay approach, the malware makes an API call that is not transferred to the kernel mode layer but rather is serviced by another mechanism. For example, this API call may be serviced in memory at the Guest user mode layer. One example of an API call that does not require a system call is Get Tick Count. In some embodiments, the malware may pursue an “in memory inspection” approach to achieve the same effect as such API call (e.g., get tick count) by assessing and copying portions of assembly code of the OS used for responding to such API calls into its own malicious code or into the process running the malware.

VI. Example Techniques to Manipulate Time to Cause Malware Activation

In order to address each of the delay approaches described above that are often employed by malware to delay execution of its malicious payload, embodiments of the invention manipulate time to make the malware believe that the malware's desired time delay has been reached. Some embodiments of the invention make use of the different layers in software stack 300 of the MCD system 110 ₁ to create a hybrid technique.

In the first approach for effecting a delay where the malware (or the process in which it is running) makes an API call that is transferred from the user mode layer to the kernel mode layer (e.g., transitioning to the system call), the API call returns when it has been serviced from the kernel to the user mode layer and to the malware. The API call can be intercepted, trapped, or otherwise “hooked” in either the user mode layer or the kernel mode layer by monitoring agent 330 located appropriately, e.g., proximate one or the other of the user mode layer 301 or kernel mode layer 302, respectively. In order to be serviced by the kernel, the API call transitions to a kernel scheduler, e.g., scheduler 306, which is located in the kernel mode layer 303. In an example embodiment, the time-dilation logic 232 corresponding to the monitoring agent 230 that intercepts the API call is located in the hypervisor layer 303. The hypervisor 200 communicates a confirmation back to the kernel mode layer 302 and/or the user mode layer 301 with an altered time seen by the Guest OS. In another embodiment, the time-dilation logic 232 of the time controller 305 running in the hypervisor layer 303 in association with the hypervisor 200 may communicate the confirmation. Alternatively, a time controller 305 included in the virtual chipset 411 (e.g., virtual CPU) modifies the response to a software call (or other time check), and generates an interrupt (e.g., a clock interrupt) that is received by the kernel scheduler 306 of the kernel mode layer 302 to alter the Guest OS time

A further understanding of the inventive techniques to address the approaches commonly used by delayed activation malware can be had with reference to the flowcharts of FIGS. 5-8. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be re-arranged. A process is terminated when its operations are completed. A process may correspond to a method, a procedure, etc.

FIG. 5A illustrates a flowchart of an example method 500 of manipulating time to detect a “time bomb” malware that uses the first delay approach. The method 500 starts with a monitoring agent of a time controller (e.g., a monitoring/response controller) in a guest OS of the VM trapping an action (in this case a system call) of a potential malicious code based on a request to delay completion of its execution for a predetermined time delay (Block 501). The time controller may be implemented in the user mode layer and/or in the kernel mode layer such that the time controller may establish the trap at either layer. For instance, the malware or the process running the malware may cause the user mode layer to initiate an API call (e.g., sleep for 30 minutes), and the monitoring agent may trap the software call. In this embodiment, as discussed above, the API call “sleep” is serviced in the kernel mode layer. Accordingly, a time controller may also establish the trap at the kernel mode layer. At Block 502, the time controller communicates the trap to another layer. In some embodiments, the hypervisor layer also includes an action logic, e.g., time-dilation logic, of the time controller such that the communication occurs from the monitoring agent in the user mode layer or the kernel mode layer to the action logic in the hypervisor layer. This communication may also indicate to the action logic in the hypervisor layer that a manipulation of the time is needed to detect the potential malicious code because the malware may be a “time bomb.”

At Block 503, the action logic in the hypervisor layer may manipulate the time of a clock of the guest OS. The manipulated time causes the predetermined delay period to elapse faster than in real time. For example, where the API call is serviced in the kernel mode layer, the action logic of the hypervisor layer may change how the kernel scheduler runs in order to manipulate the time of the clock of the guest OS. For instance, the action logic, using interrupts sent to the kernel scheduler, may generate a time adjustment or may change the clock to cause the kernel scheduler to move forward in time. Accordingly, by altering the time seen by the kernel scheduler, the timing of the whole guest OS is being altered. This may reduce the chance of the malware discovering that time is being manipulated by a malware detection system.

FIG. 5B depicts an example method 550 of servicing trapped actions (e.g., software calls) employing a time controller having plural monitoring agents and a single time-dilation logic. In step 551, the method 550 provides a plurality of monitoring agents of a time controller included in one or more layers of a software stack including software components executing in a computing device. In step 552, the method 550 traps by the monitoring agents a plurality of actions initiated by a running application in the software stack. Then, in step 553, the method 550 communicates the trapping of the actions from the monitoring agents to time-dilation logic of the time controller in another layer of the software. Finally, in step 554, the method 550 services the actions by the time-dilation logic causing manipulation of responses to the actions so as to elicit a desired result by the cumulative consequences (direct and indirect) of the responses and provides the responses to the originating software layer to influence execution of the software.

In some embodiments, to generate the time adjustment, action logic uses the interrupts to add an increment to each clock cycle or to change the frequency of the clock cycles. FIG. 4 illustrates the timing diagrams of (i) the real clock of the guest OS, (ii) the manipulated clock that includes an increment according to one embodiment of the invention, (iii) the manipulated clock that operates at an increased frequency according to another embodiment of the invention. In FIG. 4, the real clock (i) of the guest OS may be, for example, 10 milliseconds (ms) per ½ clock cycle. In timing diagram (ii), the hypervisor manipulates the clock by adding an increment of, for example, 100 ms to each clock cycle. Accordingly, for each real clock cycle of 10 ms, the manipulated clock indicates 110 ms (i.e., 10 ms+100 ms). In timing diagram (iii), the hypervisor manipulates the clock by increasing the frequency by 4 times. Accordingly, for each real clock cycle of 10 ms, the manipulated clock indicates 40 ms (i.e., 4×10 ms). Using the manipulated clock (ii), when the malware makes a system API call to sleep for 220 ms, the guest OS running on the manipulated clock (ii) will allow for the requested sleep to be completed in 20 ms. Similarly, using the manipulated clock (iii), when the malware makes a system API call to sleep for 80 ms, the guest OS running on the manipulated clock (iii) will allow for the requested sleep to be completed in 20 ms. In other words, the response to the system API call based on the manipulated clock time is returned to the user mode layer and to the malware or process running the malware.

If the malware uses the second approach for effecting delay—where the malware includes opcodes, e.g., for “rdtsc,” to obtain directly the number of CPU ticks, and then delay until a prescribed tick count has been reached—embodiments of the invention may employ the virtual chipset to provide a manipulated number of hardware ticks that represents an exaggerate (increase) of the number of clock cycles that have been seen by the CPU. In some embodiments, the virtual clock included in the virtual chipset is provided the same incremental or same frequency change that is provided to the guest OS such that the virtual clock may provide a manipulated number of ticks in response to the opcode “rdtsc”.

For this, the rdtsc opcode may be trapped explicitly in some embodiments by a monitoring agent in the hypervisor layer in response to a monitored Sleep or other delay request detected by a monitoring agent located in a higher layer such as the guest user mode process or guest kernel mode layer. In response, time-dilation logic located in the hypervisor layer or the guest kernel layer may provide a false time by moving forward a timestamp counter of the virtual chipset (e.g., the virtual CPU) read by the rdtsc, which false time is then provided as a response to the rdtsc opcode to the malware. In alternative embodiments to those just described, the timestamp counter may be moved forward to provide a false time in response to subsequent rdtsc opcode without the need to trap the rdtsc, in response to a monitored delay in execution of an object or process or a period of predetermined length of inactivity with respect to an object or process being executed.

In another embodiment, rather than generating interrupts from the hypervisor layer or chipset to the kernel scheduler 306 to manipulate the time of the guest OS, an alternate kernel scheduler 307 is included in the kernel layer. The alternate kernel scheduler 307, which may be substantially identical to the kernel scheduler 306, receives the interrupts from the hypervisor layer that cause the alternate kernel scheduler 307 to manipulate the clock time, as discussed above. In this embodiment, when the hypervisor layer receives the communication from the user mode layer or the kernel mode layer that a manipulation of time is desired to trap a “time bomb” malware (Block 502), the hypervisor layer may signal activation of the alternate kernel scheduler in lieu of operation of the otherwise active kernel scheduler for this process (Block 503).

In another embodiment, a hybrid technique may perform a secondary trap on the “time bomb” malware. As discussed above, when the monitoring agent in the user mode layer or the kernel mode layer identifies a suspicious content that is trying to delay (e.g., for three hours) execution of its malicious code (Block 501), the monitoring agent communicates the trap to the hypervisor layer (Block 502). In this embodiment at Block 503, the hypervisor may cause the virtualized chipset to generate a hibernation to bring the system “down” and communicate that a hibernation (equal to the delay) is set. However, once the system is in hibernation, the action logic may alter the clock to move time forward (e.g., change the time to reflect a three-hour advance in time when only five seconds have passed). The hypervisor may signal to the virtual chipset to alter the number of hardware ticks in the virtual chipset to reflect a manipulated time (e.g., moving time forward by increasing the number of hardware ticks). In this embodiment, the virtual machine 210 ₁ may leverage some of the non-interrupt chipset capabilities to virtualize the hibernate (or sleep) and assess how the guest OS handles the resumption of processing (resume) after the hibernation and the adjustment of the clock. The virtual machine 210 ₁ may thus, leverage built-in OS features to alter time in such a way that time is moving forward convincingly to the malware.

In this embodiment, in the event that the malware performs a subsequent check to determine if the hibernation was in fact three hour in duration and not a manipulated time that was effectuated to trap its malicious code, the action logic may identify the potential malware as a time bomb based on the malware's API call for a delay in execution of its code in conjunction with the subsequent checks being performed by the potential malware that regarding the delay.

FIG. 6 illustrates a flowchart of an example method 600 of detecting a “time bomb” malware by manipulating time according to another embodiment of the invention. Specifically, FIG. 6. illustrates one embodiment of the invention that manipulates time by changing the mapping of the memory to address the third malware approach for effecting a delay where the malware makes an API call that is not transferred to the kernel mode layer, but rather is serviced in memory at the user mode layer. Referring to FIG. 6, it is noted that in this scenario where an API call is sent from the malware that is serviced in memory at the user mode layer, a monitoring agent of the time controller may trap the action of a potential malicious code at the user mode layer (Block 601) and communicate to the hypervisor layer that the manipulation of time is needed from the user mode layer (Block 602). For instance, the API call, such as “get tick count” is serviced in memory at the user mode layer. However, the memory at the user mode layer is mapped by the kernel for every process to a physical area of memory. When the kernel scheduler updates time based on interrupts received, the kernel scheduler calls to the virtualized chipset to obtain the clock ticks and the kernel updates the memory structures in the physical area of memory to reflect this updated time for each process. Accordingly, since the memory at the user mode layer is virtual memory and it is mapped to a physical memory location, in one embodiment, at Block 603, the virtual machine 210 ₁ alters the mapping of the different physical memory locations on a per process basis. The virtual machine 210 ₁ may change the mapping of the manipulated time's memory sections for the processes affected by the action of the potential malware. This embodiment allows for a process level speed-up and does not require a time manipulation for the entire guest OS. In one embodiment, the virtual machine 210 ₁ may include the action logic in the hypervisor layer. As shown in Block 603, the action logic in this embodiment may perform the manipulation of the time of the clock of the process affected by the action of the potential malicious code in the guest OS to cause the predetermined delay period in the process affected by the action of the potential malicious code to elapse faster than in real time. As discussed above, the manipulation of the time of the clock of the process affected by the action of the potential malware may include altering a mapping of memory at the user mode layer corresponding to the process affected by the action of the potential malware.

While the time controller may be triggered to trap the malware and manipulate time by malware behavior (or lack of behavior) within the VM as discussed above (e.g., API calls such as “to sleep”, memory changes such as “Get tick count”, CPU opcodes such as “rdtsc”, etc.), the time controller may also be triggered by means that are external to the VM. For instance, the detector logic in the MCD system 110 ₁ may detect “time bomb” malware based on assessing a sequence or group of events and determining that this sequence or group of events is seeking to modify time. For instance, rules applied on the dynamic sequence or group of events may cause the detector logic to enable the time controller to trap the malware and manipulate time while the specimen is running. Accordingly, the time controller may perform one or more methods to manipulate the time to cause the specimen to see a shorter time period than the actual time elapsed or may cause the specimen to run at a future date. In another example, the MCD system 110 ₁ may process a specimen simultaneously or in parallel (in a temporally overlapping manner) in VMs with multiple guest profiles and with different time controller configurations: (i) a first profile may be configured with specified monitoring agents completely disabled or partially disabled and (ii) a second profile may be configured with the monitoring agent enabled. Using the parallel specimen submissions, the MCD system 110 ₁ may create a dynamic learning system for human analysis or for machine learning. The MCD system 110 ₁ as well as the time controller may thus learn the malware's time bomb behavior and assess the best methods to manipulate time in other (future) MCD analysis to thwart the malware's “time bomb” attack.

FIG. 7 illustrates a flowchart of another example method 700 of detecting delayed activation malware involving manipulating time according to one embodiment of the invention. The method 700 starts at Block 701 with a monitoring agent of a time controller included in a first layer of a functional stack of a run-time environment trapping a time-related check from a process executing in the run-time environment to process a specimen. The time-related check may be indicative of potential delayed activation malware. In some embodiments, the trapping of the time-related check in Block 701 includes intercepting a software call from the process to obtain current time, and communicating information regarding the trapped software call to the time-dilation logic of the time controller. The software call may be directed to an executing software module in a third layer in the functional stack of the run-time environment that is different from the first layer. In some embodiment, the first layer is the kernel mode layer of a guest OS of a virtual machine, and the second layer is a hypervisor layer. For instance, the software call may include a system call and the executing software module may include an operating system. In one embodiment, the executing software module includes the hypervisor. The run-time environment may include a virtual environment provisioned with a guest software image comprising the process and the operating system.

At Block 702, a time-dilation logic of the time controller included in a second layer of the functional stack of the run-time environment supplies in response to the time-related check a false time that is later than real time so as to indicate a greater length of time has transpired than has actually transpired.

At Block 703, the monitoring agent monitors activity of the process in the run-time environment in response to the supplied false time to detect anomalous behavior indicative of malware

In some embodiments, the time-dilation logic of the time controller may also manipulate real time to generate the false time and cause a predetermined period of time of execution of the process to elapse faster than in real time.

In one embodiment, the monitoring agent in the kernel mode layer communicates the trapping of the time-related check from to the time-dilation logic located at least in part in a hypervisor layer of the virtual machine, and the time-dilation logic manipulates a time of a clock of the guest OS to yield the false time, and cause a predetermined delay period in the guest OS to elapse faster than in real time. In this embodiment, the manipulating of the time of the clock of the guest OS includes altering an interrupt sent to a kernel scheduler included in the kernel mode layer and to cause the kernel scheduler to initiate processing of the specimen within a desired period of time. As discussed in the embodiments above, the altered interrupt transmitted to the kernel scheduler may cause the kernel scheduler to advance the time of the clock of the guest OS to reflect the false time. For instance, the altered interrupt may cause the kernel scheduler to perform at least one of: increase a frequency of the clock of the guest OS, and increment the clock of the guest OS with a value greater than that normally added thereto. In one embodiment, the kernel scheduler may include a first scheduler and an alternate scheduler, and the kernel scheduler initiates processing of the specimen within the desired period of time using the alternate kernel scheduler included in the kernel mode layer to schedule processing of the specimen. In this embodiment, to manipulate the time of the clock in the guest OS, the time-dilation logic of the time controller may also include partially or completely disable the first kernel scheduler, and enable the alternate scheduler. In another embodiment, the altered interrupt transmitted to the alternate kernel scheduler causes the alternate kernel scheduler to advance the time of the clock of the guest OS to reflect the false time.

In one embodiment, the monitoring agent may trap the time check by trapping an API call that is serviced in the kernel mode layer. In another embodiment, the monitoring agent may trap the time check that comprises a CPU query of a system clock. In this embodiment, the monitoring agent may supply the false time by executing an opcode requesting a number of hardware ticks, reflecting the system clock in an operating system clock, and providing the false time based on the operating system clock in response to the CPU query.

The controller may also direct the CPU query to a virtual CPU of a virtual machine executing in the user mode level of the run-time environment. In this embodiment, providing the false time by the time-dilation logic comprises directing the response to an executing software module in the user mode level. The time-dilation logic may also supply the false time by advancing a “virtual” system clock maintained by a virtual chipset by a number of ticks, and generating the false time based on the system clock.

In another embodiment, the monitor agent traps the time-related check by trapping a memory access corresponding to a time query made to a first memory location corresponding to the process, and the time-dilation logic supplying the false time by altering a mapping of memory at the user mode layer corresponding to the process so as to provide in response to the memory access, contents from a second memory location. The first memory location may include contents that reflect the real time and the second memory location contents may reflect the false time.

According to one embodiment, the memory at the user mode layer is virtual and mapped by a kernel mode layer for every process to a physical area of memory included in a physical layer. In this example, the monitor agent trapping a memory access corresponding to a time query includes trapping an API call that is capable of being serviced in memory at the user mode layer.

VII. Embodiments of Time Controllers

FIG. 9A and FIG. 9B show example block diagrams that illustrate alternative example embodiments of the time controller 305. In FIG. 9A, the time controller 305 includes monitoring agent 901 and action logic 902 (such as, for example, the above-described time-dilation logic) that are communicatively coupled. As shown in FIG. 9B, the time controller 305 may also include a plurality of monitoring agent 901 ₁-901 _(n) (n>1) that are each communicatively coupled to the action logic 902.

Each monitoring agent 901 ₁-901 _(n) and action logic 902 of a time controller 305 may reside inside or be operative in association with one of the following: (i) the guest image (e.g., the specimen or process running in the user space or kernel space of the guest image), (ii) the host OS software, (iii) the hypervisor, or (iv) a virtualized device of the VM. Alternatively, monitoring agent 901 in FIG. 9A or 901 ₁-901 _(n) in FIG. 9B and action logic 902 in FIG. 9A or FIG. 9B may be implemented as an independent process in or operative in association with the guest image or on the host OS. The monitoring agent 901 in FIG. 9A or 901 ₁-901 _(n) in FIG. 9B may be located within or be operative in association with any of (i) the guest image, (ii) the host OS software, (iii) the hypervisor, or (iv) a virtualized device of the VM, and the action logic may be co-located (same layer) or may be located in another of these layers, e.g., the monitoring agent may be located closer to the specimen being processed. For example, the monitoring agent may be located within a process (or as a process) of the guest image and the action logic may be in communication with the monitoring agent and operating within the hypervisor. Accordingly, depending on the location of the time controller(s), kernel mode or user mode activities of the guest image may each see a different clock/time or they may all see the same clock/time.

Each time controller can be referred to as an “elastic” time controller since its action logic may be configured to establish “short” or “long” delays. In other words, the action logic of a time controller can respond to a software call from a specimen being processed with a response containing a selected “false” time that induces the specimen into believing it has been dormant or inactive for a shorter period of time or a longer period of time depending on detection needs.

The action logic 902 can decide on the length of delay based on prior analysis results, metadata regarding the specimen, identity of processes running in the run-time environment, experiential knowledge in dealing with known malware, current analysis parameters such as length of the queue of specimens awaiting analysis and contention for resources (e.g., CPU or memory resources), and other factors. The duration of the delay may be a prescribed (fixed) or selectable value. For example, the action logic may select a delay value from any of various discrete lengths of time (e.g., a 30 minute length, 60 minute length, or two day length) or may select any delay value over a continuous range of available time delays (e.g., 60 minutes to 2 days) and so be fully tunable. The action logic 902 then adds the delay value to the current time indicated by the clock it receives or utilizes, so as to fashion a new, “false” current time for replying to the time request/check from the specimen. Future time requests/checks received while processing the same specimen will take into account the delay introduced during the first response so as to provide a consistent clock and avoid malware from detecting that it is being analyzed. In some embodiments, the length of delay (increment) may be parameterized and a configuration file may provide values for such time ranges and periods, and be updated, for example, by downloading replacement or modifications to the configuration file from a central source.

In one embodiment, an exploit detection system (or MCD system 110 ₁) may be described as comprising a run-time environment, a behavior controller (e.g., time controller 305) and an analyzer (e.g., behavioral analysis engine 190). The run-time environment that is configurable to execute executable computer program components may process a specimen. As illustrated in FIGS. 9A and 9B, the behavior controller (or time controller 305) that operates with the run-time environment may include an action logic 902 and a monitoring agent 901 or 901 ₁-901 _(n). The monitoring agent monitors activities within a first of the executable computer program components, generates monitor results based on the monitored activities and communicates the monitor results to the action logic located at least in part in a second of the executable computer program components. The action logic provides a specious response to a third of the executable computer program components so as to influence processing of the specimen. In one embodiment, the first and second of the executable computer program components are a single one of the executable computer program components.

The analyzer receives the monitor results from the monitoring agent and detects an exploit, if the monitor results indicate that there is an exploit. In another embodiment, the analyzer is further configured to capture and report indicators of compromise including the monitor results associated with the detected exploit.

According to one embodiment, the exploit detection system may also include a virtual machine, a hypervisor to manage the virtual machine, and a host operating system over which the virtual machine and hypervisor execute. The virtual machine may run a guest application in which the specimen is processed, and a guest operating system over which the application executes. In this embodiment, the virtual machine, guest application, guest operating system, hypervisor, and host operating system comprise the executable computer program components.

In one embodiment, the run-time environment further processes the specimen responsive to a configurable run-time parameter and the action logic configures the run-time parameter so as to influence processing of the specimen in response to the monitoring results. The action logic may be responsive to a stored action plan that includes a plurality of rules identifying values for run-time parameters to be provided by the action logic to the run-time environment in response to a plurality of different pre-determined sets of potential monitor results.

Additionally, in one embodiment, the MCD 110 ₁ may include a primary controller with configuration, policy, and management logic situated in one or more of these multiple layers and adapted to communicate with and configure (e.g., provide the rules, policies, and otherwise manage) each of the time controllers. The primary controller may selectively enable/disable one or more of the time controllers to monitor and/or respond to the software calls or other time checks, employing one or more of the techniques mentioned herein. Individual time controllers may be entirely enabled or disabled, or partially enabled or disabled. Partial enablement may denote that the time controller is limited in operation, for example, to introduce only a prescribed and fixed delay time, e.g., a short delay of fixed duration, or to provide time dilation regardless of any observed behaviors of a particular specimen.

The primary controller may be implemented as part of a VM monitor or manager (VMM), also referred to as a hypervisor, which manages or monitors VMs, or, in some embodiments, may be integrated functionally into one of the time controllers. In one embodiment, the MCD may be equipped with the primary controller, e.g., as part of the VMM, when the MCD is deployed, which enables or disables a specific time controller (or specific monitoring agent or action logic) instantiated with a corresponding virtual machine based on detection requirements.

FIG. 10 illustrates an example block diagram that illustrates an embodiment of a primary controller 420 coupled with a plurality of time controllers of FIG. 3 so as to control their operation, according to one embodiment of the invention. More specifically, according to this embodiment, rather than each time controller 305 operable independently of any other one, as described in the previous embodiments, a plurality of time controllers 305 ₁-305 _(m) (m>1) may be used in such manner that they are controlled and operative in a coordinated manner. Though not shown in FIG. 10, it can be readily understood that each of the time controllers 305 ₁-305 _(m) may include one or more monitoring agents 901 or 901 ₁-901 _(n) and an action logic 902 as illustrated in FIGS. 9A and 9B. In some embodiments, at least two different time controllers 305 ₁, 305 ₂ may share a single action logic 902. In these embodiments, each of the time controllers 305 ₁, 305 ₂ have separate monitoring agent 901 in the same or different layers of the software stack that are respectively communicatively coupled with the single action logic 901 that may be co-located with a monitoring agent in the same layer or in a different layer. The monitor agent and action logic of the time controllers may operate in association with the application, the operating system, the host operating system software, the hypervisor, or a virtualized device. The monitor agent and the action logic of a given time controller may respectively operate in association with the same or a different one of: the application, the operating system, the host operating system software, the hypervisor, or a virtualized device.

In one embodiment, the MCD system to detect delayed activation malware includes a plurality of time controllers 305 ₁-305 _(m) including a first time controller 305 ₁ and a second time controller 305 ₂. The MCD system also includes a run-time environment to be executed by a processor, and that includes an application to process one or more specimens. The one or more specimens may or may not include delayed activation malware. The run-time environment also includes an operating system in communication with the application, and a plurality of monitors including the monitoring agents of the first time controller 305 ₁ and second time controller 305 ₂, respectively. The monitoring agents are configured so as to be operable in association with different components of the run-time environment to trap, directly or indirectly, a time-related check of the run-time environment observed from the associated component. The action logic of the first and second time controllers 305 ₁, 305 ₂ respond to the time-related check with a false time that is later than real time so as to indicate a greater length of time has transpired than has actually transpired. During execution, the application processes the one or more specimens based at least in part on the false time and the monitoring agents of the run-time environment monitor activity of the application during execution to detect whether the delayed activation malware is included in the one or more specimens. The monitoring agents may thus assess whether anomalous activity is associated with the malware.

In one embodiment, the monitoring agent of the first time controller 305 ₁ operates in association with a first component of the run-time environment comprising the application while the monitoring agent of the second time controller 305 ₂ operates in association with a second component of the run time environment comprising the operating system. Accordingly, the MCD system may trap time checks originating from the application and the operating system, respectively. The application may use a clock reflecting the false time, and the operating system may use a clock reflecting the real time. In one embodiment, the application and the operating system may reside in the guest memory space and use a clock reflecting the false time while the host operating system accesses and uses a clock reflecting the real time.

The run-time environment may comprise a virtual run-time environment that includes a hypervisor, and at least one virtual machine in communication with the hypervisor. In one embodiment, the monitoring agent of the first time controller 305 ₁ operates in association with a third component of the run-time environment that includes either the application or the operating system while the monitoring agent of the second time controller 305 ₂ operates in association with a fourth component of the run time environment that includes the hypervisor. According, this embodiment of the MCD 101 is able to trap time checks originating from the third component and the fourth component, respectively.

In another embodiment, the run-time environment also includes a host operating system. The monitoring agent of the first time controller 305 ₁ in this embodiment operates in a guest memory space of the host operating system while the monitoring agent of the second time controller 305 ₂ operates in association with a kernel memory space of the host operating system.

In one embodiment, the action logic 902 of each of the first and second time controllers 305 ₁, 305 ₂ provides a false time in response to a software call from the application comprising the time-related check. In another embodiment, the action logic 902 of each of the first and second time controllers 305 ₁, 305 ₂ determines a delay period for purposes of time dilation to be used in generating the false time.

Referring back to FIG. 10, any one of the time controllers 305 ₁-305 _(m) may be used as a primary controller (e.g., 305 _(m)). The primary controller 305 _(m) communicates with the first and second time controllers 305 ₁, 305 ₂ and selectively enables and disables the first and second time controllers 305 ₁, 305 ₂ so as to provide a corresponding time dilation action reflected in the false time. For instance, when the first time controller 305 ₁ is enabled, the action logic of the first controller 305 ₁ may respond to the time check from the run-time environment. In this embodiment, the run-time environment may include a hypervisor, which comprises the primary controller.

The primary controller 305 _(m) may be configured to enable both the first and second time controllers 305 ₁, 305 ₂. In this embodiment, the action logic of the first and second time controllers 305 ₁, 305 ₂ are configured to provide time dilation action when enabled such that the false time reflects both the time dilation actions of the first and second time controllers 305 ₁, 305 ₂.

When the action logic of the first and second time controllers 305 ₁, 305 ₂ determine a delay period to be used in generating the false time, the primary controller 305 _(m) configures the first and second time controllers 305 ₁, 305 ₂ with runtime rules for the first and second time controllers 305 ₁, 305 ₂ to use in determining the delay period. The run-time rules may be pre-set or dynamically determined during run-time based on one or more factors including history of activation delays of known delayed activation malware.

The primary controller 305 _(m) generates and stores in a memory of the MCD an action plan for exercising the one or more specimens so as to trigger activity of malware that may be included therein. The primary controller 305 _(m) may also configure the first and second time controllers 305 ₁, 305 ₂ to execute the action plan that specifies an identifier of each of the time controllers 305 ₁, 305 ₂ to be enabled, and specific delay values to be reflected in the false time to cause the application to execute within a desired period of time.

FIG. 8 illustrates a flowchart of another example method of detecting delayed activation malware according to one embodiment of the invention. The method 800 starts with a first time controller and a second time controller being provided. Each of the first and second time controllers including a monitoring agent, and action logic in communication with the monitoring agent (Block 801). At Block 802, a run-time environment processes a specimen. The specimen may or may not include the delayed activation malware. The run-time environment established by a processor includes an application, an operating system in communication with the application, and a plurality of monitors including the monitoring agents of the first time controller and second time controller. The application and the operating system may be included as components of the run-time environment. The monitoring agents are configured to operate in association with a different one of the components of the run-time environment. At Block 803, at least one of the monitoring agents trap a time-related check by the run-time environment observed by the associated component. At Block 804, the action logic of the first and second time controllers respond to the time-related check with a false time that is later than real time so as to indicate a greater length of time has transpired than has actually transpired. At Block 805, during execution, the application processes the specimen based at least in part on the false time and the monitors (or monitor agents) of the run-time environment monitor activity of the application during execution to detect, if the delayed activation malware is included in the specimen, anomalous activity associated with the malware.

In one embodiment, the trapping of a time-related check in Block 803 may include trapping time checks originating from the application and the operating system by operating the monitoring agent of the first time controller in association with the application, and operating the monitoring agent of the second time controller in association with the operating system. In another embodiment, the trapping of a time-related check in Block 803 may include trapping time checks originating from a first component and a second component of the run-time environment by operating the monitoring agent of the first time controller in association with the first component comprising one of the application and the operating system, and operating the monitoring agent of the second time controller in association with the second component comprising the hypervisor.

In one embodiment, the application may use a clock reflecting the false time while the operating system may use a clock reflecting the real time. In another embodiment, the application and the operating system may use a clock reflecting the false time while the host operating system uses a clock reflecting the real time.

In one embodiment, an exploit detection system (or MCD system 110 ₁) may be described as comprising a run-time environment, a plurality of behavior controllers (e.g., time controllers 305 ₁-305 _(m) as shown in FIG. 10) including a primary controller 305 _(m), and an analyzer (e.g., behavioral analysis engine 190). The run-time environment that is configurable to execute executable computer program components may process a specimen. As illustrated in FIGS. 9A and 9B, each of the behavior controllers (or time controllers 305 ₁-305 _(m)) that operate within the run-time environment may include an action logic 902 and at least one monitoring agent 901 or 901 ₁-901 _(n). Each of the monitoring agents included in a behavior controller monitor activities within a corresponding executable component. The monitoring agents 901 generate monitor results based on the monitored activities and communicate the monitor results to the associated action logic 902. The action logic 902 of the behavior controllers may enable or disable the associated monitoring agent in response to the monitor results. In one embodiment, the primary controller 305 _(m) communicates with the other behavior controllers and selectively causes the time-dilation logic to enable or disable the behavior controllers in accordance with an action plan reflecting the monitor results. The analyzer receives the monitor results from the monitoring agents and detects an exploit associated with the monitor results. The analyzer may also capture and report indicators of compromise including the monitor results associated with the detected exploit.

In one embodiment, the executable computer program components include a virtual machine, a hypervisor configured to manage the virtual machine, and a host operating system over which the virtual machine and hypervisor execute. The virtual machine runs a guest application in which the specimen is processed and a guest operating system over which the application executes. In one embodiment, the virtual machine, guest application, guest operating system, hypervisor, and host operating system comprise the executable computer program components.

In one embodiment, the run-time environment processes the specimen responsive to a configurable run-time parameter, and the time-dilation logic of the behavior controllers configures the run-time parameter so as to influence processing of the specimen in response to the monitoring results. The action plan may include a plurality of rules identifying which of the monitoring agents are to be enabled or disabled, and values for run-time parameters to be provided by the time-dilation logic to the run-time environment in response to a plurality of different pre-determined sets of potential monitor results.

In one embodiment, the primary controller 305 _(m) comprises the action logic of at least one of the behavior controllers. In other words, the behavior controllers include the monitoring agent 901 but the action logic 902 that is coupled to the behavior controllers' monitoring agent 901 is included in the primary controller 305 _(m). In another embodiment, each of the monitoring agents monitors activities within a corresponding first of the executable components that is different from the executable component corresponding to another of the monitoring agents.

FIG. 11 depicts a method 1100 of servicing trapped actions (e.g., software calls) employing a primary controller and a plurality of time controllers. In step 110 ₁, the method 1100 starts with a primary controller configuring (e.g., selectively enabling and disabling) a plurality of time controllers, the time controllers having a first plurality of monitoring agents of a second plurality of corresponding action logic modules, the monitoring agents included in one or more layers of a software stack having software components executing in a computing device. In step 1102, the method 1100 traps actions (e.g., software calls) initiated by a process included in the software stack. In step 1103, the method 1100 communicates the trapping of the actions from the monitoring agents to corresponding action logic modules of the time controller. In step 1104, the method 1100 services the actions via the action logic modules causing manipulation of responses to the actions so as to elicit a desired result by the cumulative consequences (direct and indirect) of the responses and then the method 1100 provides the responses to the originating software layer to influence execution of the software components.

FIG. 12 is a block diagram of computing apparatus 1200 that may be advantageously used to implement an MDC. The computing apparatus 1200 includes one or more central processing units (CPUs) 1202, one or more network interfaces 1204, a memory 1208, and one or more devices 216 connected by a system interconnect 1212, such as a bus. The devices 1208 may include storage devices (e.g., disks, including hard disk drives and solid state drives), and/or other types of input/output (I/O) including user interface devices or peripheral devices. Each network interface 1204 may include one or more network ports containing the mechanical, electrical and signaling circuitry needed to connect the node to the network 230 (FIG. 1) to thereby facilitate communication over the network. To that end, the network interface 214 may be configured to transmit and/or receive messages using a variety of communication protocols including, inter alia, TCP/IP and HTTP.

The memory 1206 may include a plurality of locations that are addressable by the CPU(s) 1202 and the network interface(s) 1204 for storing software program code (including application programs) and data structures associated with the embodiments described herein. The CPU 1202 may include processing elements or logic adapted to execute the software program code, such as that of the software stack 300 illustrated in FIG. 3, and manipulate the data structures. Example CPUs may include families of instruction set architectures based on the x86 CPU from Intel Corporation of Santa Clara, Calif. and the x64 CPU from Advanced Micro Devices of Sunnyvale, Calif.

A host operating system kernel 1212, portions of which are typically resident in memory 1206 and executed by the CPU 1202, functionally organizes the computing apparatus 1200 by, inter alia, invoking operations in support of the application programs executing on the computing apparatus 1200. A suitable host operating system kernel 1212 may include the Windows® series of operating systems from Microsoft Corp of Redmond, Wash., the MAC OS® and IOS® series of operating systems from Apple Inc. of Cupertino, Calif., the Linux operating system, among others. Suitable application programs 1214 stored in memory 1206 may include proprietary software programs of FireEye, Inc., and commercially available software programs. Illustratively, the application programs 1214 may be implemented as user mode processes of the kernel 230. As used herein, a process (e.g., a user mode process) is an instance of software program code (e.g., an application program) executing in the operating system that may be separated (decomposed) into a plurality of threads, wherein each thread is a sequence of execution within the process. The memory 1206 also includes a data repository for storing various data and metadata as discussed hereinabove.

It can now be seen that the described embodiments of the invention seek to deceive delayed-activation malware by using time-dilation techniques to modify responses to time-related software calls and other “inquiries” undertaken by such malware. Aspects of the invention can also apply to detect other forms of malware so as to hide the fact that the malware is being processed within a malware detector or sensor. For example, where malware performs checks on IP addresses or other identifying information associated with a computing device on which it is being processed, these embodiments may provide false information in response to the checks (“modified response”) so as to deceive the malware as to where it is being processed. For these purposes, a more generalized vocabulary is useful: an action controller (such as, for example, the above-described time controller) may include one or more monitoring agents and an action logic (such as, for example, the above-described time-dilation logic).

It will be apparent to those skilled in the art that other types of processing elements and memory, including various computer-readable media, may be used to store and execute program instructions pertaining to the embodiments described herein. Also, while the embodiments herein are described in terms of software program code and computer, e.g., application, programs stored in memory, alternative embodiments also include the code or logic embodied as modules consisting of hardware, software, firmware, or combinations thereof.

In the foregoing description, the invention is described with reference to specific example embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. For instance, in lieu of or in addition to the MCD system 110 ₁-110 ₃ of FIG. 1, a malware analysis may be conducted within firewall or other components within the communication network that is adapted to conduct dynamic malware analysis through the optimized use of VMs. Further, while the foregoing description illustrates a hybrid technique wherein the time controller in the user mode or kernel mode layers is used in conjunction with the hypervisor in the hypervisor layer (or the time controller in the hypervisor layer), it is contemplated that a pure hypervisor-based solution or a pure guest OS solution may also be used separately. 

What is claimed is:
 1. A system to detect delayed activation malware comprising: a processor; and a memory communicatively coupled to the processor, the memory comprises a plurality of time controllers including a first time controller implemented, at least in part, in a first layer corresponding to a user mode layer of a run-time environment and a second time controller implemented, at least in part, in a second layer corresponding to either a kernel mode layer or a hypervisor layer of the run-time environment, each of the first time controller and the second time controller includes one or more monitoring agents and time-dilation action logic being configured to respond to a time-related check with a false time to indicate a greater length of time has transpired than has actually transpired, wherein the run-time environment including (i) an application configured to process one or more specimens which potentially include the delayed activation malware, (ii) an operating system in communication with the application, and (iii) the one or more monitoring agents associated with each of the plurality of time controllers, each of the one or more monitoring agents to detect the time-related check for a different software component of the run-time environment, wherein the application, during execution, is configured to process the one or more specimens based at least in part on the false time, and at least the one or more monitoring agents of the first time controller are configured to monitor activity of the application during execution to detect, when the delayed activation malware is included in the one or more specimens, anomalous activity associated with the delayed activation malware.
 2. The system of claim 1, wherein a monitoring agent of the one or more monitoring agents of the first time controller being located at the user mode layer and the one or more monitoring agents of the second time controller being located at the kernel mode layer.
 3. The system of claim 1, wherein the run-time environment comprises a virtual run-time environment including a hypervisor, and at least one virtual machine in communication with the hypervisor.
 4. The system of claim 3, wherein the one or more monitoring agents of the second time controller is configured so as to be operable in association with a software component of the run time environment comprising the hypervisor, so as to be able to hook time checks originating from the software component.
 5. The system of claim 1, wherein the plurality of time controllers further include a third time controller that comprises one or more monitoring agents operable in associated with a kernel memory space of a host operating system and the run-time environment further comprises a host operating system.
 6. The system of claim 1, wherein a monitoring agent of the one or more monitoring agents and the time-dilation action logic of the second time controller are both operable in association with the hypervisor.
 7. The system of claim 3, wherein a monitoring agent of the one or more monitoring agents and time-dilation action logic of the first time controller are operable in association with at least: the application.
 8. The system of claim 1, wherein the application is configured to use a clock reflecting the false time, and the operating system is configured to use a clock reflecting a real time.
 9. The system of claim 5, wherein the application and the operating system reside in guest memory space and are configured to use a clock reflecting the false time, and the host operating system is configured to access and use a clock reflecting a real time.
 10. The system of claim 1, wherein the time-dilation action logic of each of the first time controller and the second time controller is further configured to provide a false time in response to a software call from the application comprising the time- related check.
 11. The system of claim 1, wherein the first time controller and the second time controller share the same time-dilation action logic.
 12. The system of claim 1, wherein the time-dilation action logic of the first time controller and the second time controller is configured to determine a delay period for purposes of time dilation to be used in generating the false time.
 13. The system of claim 1, further comprising a primary controller adapted to communicate with the first time controller and the second time controller, wherein the primary controller is configured to selectively enable and disable each of the first time controller and a corresponding first time-dilation action logic and the second time controller and a corresponding first time-dilation action logic.
 14. The system of claim 13, wherein, when the first time controller is enabled, the time-dilation logic of the first time controller responds to the time check from the run-time environment.
 15. The system of claim 13, wherein the run-time environment comprises a hypervisor which comprises the primary controller.
 16. The system of claim 13, wherein the first time controller comprises the primary controller.
 17. The system of claim 13, wherein the primary controller is configured to enable both the first time controller and the second time controller, the time-dilation action logic of the first time controller and the second time controller are configured to provide time dilation action when enabled such that the false time reflects both the time dilation actions of the first time controller and the second time controller.
 18. The system of claim 13, wherein the time-dilation action logic of the first time controller and the time-dilation action logic of the second time controller are each configured to determine a delay period for purposes of time dilation to be used in generating the false time, and the primary controller is adapted to configure the first time controller and the second time controller with runtime rules for the first time controller and the second time controller to use in determining the delay period.
 19. The system of claim 18, wherein the run-time rules are pre-set.
 20. The system of claim 18, wherein the run-time rules are dynamically determined during run-time based on one or more factors including history of activation delays of known delayed activation malware.
 21. The system of claim 13, wherein the primary controller is further configured to generate and store an action plan for exercising the one or more specimens so as to trigger activity of malware when included in the one or more specimens, and to configure the first time controller and the second time controller to execute the action plan, and wherein the action plan specifies an identifier of each of the plurality of time controllers to be enabled, and specific delay values to be reflected in the false time to cause the application to execute within a desired period of time.
 22. A computer-implemented method to detect delayed activation malware comprising: providing a first time controller operating as part of a user mode layer and a second time controller different and separate from the first time controller and operating as part of a kernel mode layer, each of the first time controller and the second time controller including a monitoring agent and time-dilation action logic in communication with the monitoring agent; processing a specimen, which potentially includes the delayed activation malware, by a run-time environment including (i) an application, (ii) an operating system in communication with the application, and (iii) a plurality of monitors including the monitoring agents of the first time controller and the second time controller, wherein the application and the operating system comprising components of the run-time environment and each of the monitoring agents being configured so as to be operable in association with a different one of the components of the run-time environment; hooking, by at least one of the monitoring agents, a time-related check by the run-time environment at the associated component; responding to the time-related check by each time-dilation action logic of the first time controller and the second time controller with a false time to indicate a greater length of time has transpired than has actually transpired; and wherein the application, stored within a non-transitory storage medium and during execution, is configured to process the specimen based at least in part on the false time, and the monitoring agents of the run-time environment are configured to monitor activity of the application during execution to detect, when the delayed activation malware is included in the specimen, anomalous activity associated with the malware.
 23. The method of claim 22, wherein the hooking of the time-related check further comprises hooking time checks originating from the application and the operating system by operating the monitoring agent of the first time controller in association with the application, and operating the monitoring agent of the second time controller in association with the operating system.
 24. The method of claim 22, wherein the run-time environment comprises a virtual run-time environment including a hypervisor, and at least one virtual machine in communication with the hypervisor.
 25. The method of claim 24, further comprising hooking time checks originating from a first component and a second component of the run-time environment by operating the monitoring agent of the first time controller in association with the first component comprising one of the application and the operating system, and operating the monitoring agent of the second time controller in association with the second component comprising the hypervisor.
 26. The method of claim 24, wherein the run-time environment further comprises a host operating system, and the method further comprising operating the monitoring agent of the first time controller in a guest memory space of the host operating system, and operating the monitoring agent of the second time controller in a kernel memory space of the host operating system.
 27. The method of claim 26, further comprising operating the monitor agent and time-dilation action logic of the first time controller in association with one of: the application, the operating system, the host operating system software, the hypervisor, and a virtualized device.
 28. The method of claim 26, further comprising operating the monitor agent and time-dilation action logic of the first time controller in association with different ones of: the application, the operating system, the host operating system software, the hypervisor, and a virtualized device.
 29. The method of claim 26, further comprising using, by the application, a clock reflecting the false time, and using, by the operating system, a clock reflecting a different, real time.
 30. The method of claim 26, further comprising using, by the application and the operating system, a clock reflecting the false time, and using, by the host operating system, a clock reflecting a different, real time.
 31. The method of claim 22, further comprising providing the false time, by the time-dilation action logic of one of the first time controller and the second time controller, in a response to a software call from the application comprising the time-related check.
 32. The method of claim 22, further comprising determining, by the time-dilation action logic of the first time controller and the second time controller, a delay period for purposes of time dilation to be used in generating the false time.
 33. The method of claim 22, further comprising selectively enabling and disabling, by a primary controller, each of the time-dilation logic of the first time controller and the second time controller so as to provide a corresponding time dilation action reflected in the false time.
 34. The method of claim 33, further comprising configuring, by the primary controller, the first time controller and the second time controller with runtime rules for use by the time-dilation action logic of the first time controller and the second time controller in setting the false time.
 35. The method of claim 33, further comprising dynamically determining the run-time rules based on one or more factors including history of activation delays of known delayed activation malware.
 36. The method of claim 22, further comprising generating and storing in a memory, by the primary controller, an action plan for exercising the specimen so as to trigger activity of malware when included in the specimen, and configuring the first time controller and the second time controller to execute the action plan, and wherein the action plan specifies an identifier of each of the plurality of time controllers to be enabled or disabled, and one or more specific delay values to be reflected in the false time to cause the application to process the specimen within a desired period of time.
 37. A non-transitory storage medium forming a software stack including software that, upon execution by a processor, performs operations to detect delayed activation malware, the non-transitory storage medium comprising: a first layer of the software stack corresponding to a user mode layer of a run-time environment, the first layer comprises an application instance configured to process one or more specimens which potentially include delayed activation malware, the first layer further comprises at least in part, a first time controller including at least a first monitoring agent; and a second layer of the software stack corresponding to either a kernel mode layer or a hypervisor layer of the run-time environment, the second layer comprises, at least in part, a second time controller including at least a second monitoring agent, wherein a time-dilation action logic being configured to respond to a time-related check with a false time to indicate that a greater length of time has transpired than has actually transpired, the time-related check being hooked by either the first monitoring agent being operable with a first software application instance or the second monitoring agent being operable with either an operating system when the second layer corresponds to the kernel mode layer or a hypervisor when the second layer corresponds to the hypervisor layer, and wherein the application, during execution, is configured to process the one or more specimens based at least in part on the false time, and at least the first monitoring agent of the run-time environment is configured to monitor activity of the application during execution to detect, when the delayed activation malware is included in the one or more specimens, anomalous activity associated with the delay activated malware.
 38. The non-transitory storage medium of claim 37, wherein the time-dilation action logic comprises (i) a first time-dilation action logic, operating with the first monitoring agent that detect a time-related check, to respond with a false time to indicate that a greater length of time has transpired than has actually transpired, and (ii) a second time-dilation action logic, operating with the second monitoring agent that detects a time-related check, to respond with a false time.
 39. The non-transitory storage medium of claim 37, wherein the run-time environment comprises a virtual run-time environment including the hypervisor, and at least one virtual machine in communication with the hypervisor.
 40. The non-transitory storage medium of claim 37, wherein the second monitoring agent is operable with the hypervisor being a software component of the run-time environment.
 41. The non-transitory storage medium of claim 37, wherein the second monitoring agent is operable with the operating system corresponding to a host operating system being software component of the run-time environment.
 42. The non-transitory storage medium of claim 37, wherein the application is configured to use a clock reflecting the false time, and the operating system is configured to use a clock reflecting a real time.
 43. The non-transitory storage medium of claim 37, wherein the first time controller and the second time controller share the same time-dilation action logic.
 44. The non-transitory storage medium of claim 37, wherein the time-dilation action logic is configured to determine a delay period for purposes of time dilation to be used in generating the false time.
 45. The non-transitory storage medium of claim 38, wherein at least the first time-dilation action logic of the first time controller is further configured to provide the false time in response to a software call from the application comprising the time-related check.
 46. The non-transitory storage medium of claim 38, further comprising a primary controller configured to communicate with the first time controller and the second time controller, wherein the primary controller is configured to selectively enable and disable the first time controller and the second time controller.
 47. The non-transitory storage medium of claim 46, wherein the primary controller is configured to selectively enable and disable the first time controller so as to selectively enable and disable the first time-dilation action logic.
 48. The non-transitory storage medium of claim 46, wherein the primary controller is configured to selectively enable and disable the second time controller so as to selectively enable and disable the second time-dilation action logic.
 49. The non-transitory storage medium of claim 38, further comprising a primary controller adapted to communicate with the first time controller and the second time controller, wherein the primary controller is configured to selectively enable one of the first time controller and the second time controller so as to selectively enable a corresponding one of the first time-dilation action logic and the second time-dilation action logic and selectively disable a remaining one of the first time controller and the second time controller so as to selectively disable a remaining one of the first time-dilation action logic and the second time-dilation action logic.
 50. The non-transitory storage medium of claim 38, wherein the first time-dilation action logic and the second time-dilation action logic are each configured to determine a delay period for purposes of time dilation to be used in generating the false time, and the primary controller is adapted to configure the first time controller and the second time controller with runtime rules for the first time controller and the second time controller to use in determining the delay period.
 51. The non-transitory storage medium of claim 50, wherein the run-time rules are pre-set.
 52. The non-transitory storage medium of claim 50, wherein the run-time rules are dynamically determined during run-time based on one or more factors including history of activation delays of known delayed activation malware.
 53. The system of claim 1, wherein the memory includes the first time controller that includes the one or more monitoring agents and the time-dilation action logic when the one or more monitoring agents of the first time controller are operative in association with the time-dilation action logic of the first time controller.
 54. The method of claim 53, wherein the one or more monitoring agents of the first time controller are deployed as part of the first layer of the run-time environment corresponding to the user mode layer while the time-dilation action logic of the first time controller is deployed as part of the second layer of the run-time environment corresponding to either the kernel mode layer or the hypervisor layer.
 55. The method of claim 1, wherein the one or more monitoring agents and the time-dilation action logic of the first time controller are associated with processes conducted at different layers of the run-time environment including at least the first layer and the second layer.
 56. The method of claim 22, wherein the monitoring agent and the time-dilation action logic is included within the first time controller when the monitoring agent of the first time controller is operative in association with the time-dilation action logic of the first time controller.
 57. The method of claim 56, wherein the monitoring agent of the first time controller is deployed within the user mode layer and the time-dilation action logic of the first time controller is deployed within the kernel mode layer.
 58. The method of claim 22, wherein the monitoring agent and the time-dilation action logic of the first time controller are associated with processes conducted at different layers of the run-time environment including at least the user mode layer and the kernel mode layer of the run-time environment.
 59. The non-transitory storage medium of claim 38, wherein the first time- dilation action logic is deployed within the first layer of the software stack and the second time-dilation action logic is deployed within the second layer of the software stack.
 60. The non-transitory storage medium of claim 37, wherein a portion of the time-dilation action logic operating with the first monitoring agent is deployed within either the first layer of the software stack or the second layer of the software stack.
 61. The non-transitory storage medium of claim 60, wherein a portion of the time-dilation action logic operating with the second monitoring agent is deployed within either the second layer of the software stack or the first layer of the software stack.
 62. The non-transitory storage medium of claim 37, wherein the time-dilation action logic being deployed within either the first layer of the software stack or the second layer of the software stack. 